// RMSTransPassword.h: interface for the CRMSTransPassword class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RMSTRANSPASSWORD_H__348936B2_B249_4B0A_A92F_1B2E76D44E9E__INCLUDED_)
#define AFX_RMSTRANSPASSWORD_H__348936B2_B249_4B0A_A92F_1B2E76D44E9E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\COMMON\RMSThread.h"
#include "..\COMMON\cTypes.h"	// Added by ClassView
#include "..\RMSLib\info.h"

class CBaseServer;

class CRMSTransPassword : public CRMSThread  
{
public:
	int PassStatus;
	CBaseServer		*pBaseServer;
	CRMSTransPassword(CBaseServer *srv,char *Caller, CInfo& info, int Tag);
	virtual ~CRMSTransPassword();


	BOOL Execute();
	int RecvData(SOCKET& Socket,BOOL& bTerminated, void* data, int Len);
	unsigned long getReturnedAddrIf();

protected:
	DWORD ThreadFunc();

private:
	SOCKADDR_IN m_saCamera;
	SOCKADDR_IN m_saServer;
	SOCKET m_tcpSocket;
	CInfo CameraInfo;
	char ServerIP[256];
	char SpyPassword[128];
	int SaveTag;
	unsigned long m_oriAddr;
	unsigned long m_retAddr;
};

#endif // !defined(AFX_RMSTRANSPASSWORD_H__348936B2_B249_4B0A_A92F_1B2E76D44E9E__INCLUDED_)
